import { lazy } from "react";

<<<<<<< HEAD
export const routesList = [
  {
    path: "*",
    name: "404",
    element: lazy(() => import("../page/Mian/404")),
  },
  {
    path: "/home/free_templates/shou",
    name: "首页",
    element: lazy(() => import("../page/Mian/Shou")),
  },
  {
    path: "/home/free_templates/console",
    name: "工作台",
    element: lazy(() => import("../page/Mian/Console")),
  },
  {
    path: "/home/free_templates/chuangjian",
    name: "创建设计",
    element: lazy(() => import("../page/Mian/Chuangjian")),
  },
  {
    path: "/home/free_templates/pianhao",
    name: "偏好设置",
    element: lazy(() => import("../page/Mian/Pianhao")),
  },
  {
    path: "/home/free_templates/my",
    name: "我的",
    element: lazy(() => import("../page/Mian/My")),
  },
  {
    path: "/home/free_templates/H5",
    name: "H5",
    element: lazy(() => import("../page/Mian/H5")),
  },
  {
    path: "/home/free_templates/haibao",
    name: "海报",
    element: lazy(() => import("../page/Mian/Haibao")),
  },
  {
    path: "/home/free_templates/changye",
    name: "长页",
    element: lazy(() => import("../page/Mian/Changye")),
  },
  {
    path: "/home/free_templates/biaodan",
    name: "表单",
    element: lazy(() => import("../page/Mian/Biaodan")),
  },
  {
    path: "/home/free_templates/hudong",
    name: "互动",
    element: lazy(() => import("../page/Mian/Hudong")),
  },
  {
    path: "/home/free_templates/huace",
    name: "电子画册",
    element: lazy(() => import("../page/Mian/Huace")),
  },
  {
    path: "/home/free_templates/shiping",
    name: "视频",
    element: lazy(() => import("../page/Mian/Shiping")),
  },
  {
    path: "/home/free_templates/ai",
    name: "ai创作",
    element: lazy(() => import("../page/Mian/Ai")),
  },
  {
    path: "/home/free_templates/shuzi",
    name: "数字人",
    element: lazy(() => import("../page/Mian/Shuzi")),
  },
  {
    path: "/home/free_templates/anli",
    name: "案例中心",
    element: lazy(() => import("../page/Mian/Anli")),
  },
  {
    path: "/home/free_templates/zhengban",
    name: "正版素材",
    element: lazy(() => import("../page/Mian/Zhengban")),
  },
  {
    path: "/home/free_templates/sheji",
    name: "成为设计师",
    element: lazy(() => import("../page/Mian/Sheji")),
  },
  {
    path: "/home/free_templates/koutu",
    name: "智能抠图",
    element: lazy(() => import("../page/Mian/Koutu/Koutu")),
  }
]
export const HomeRouterChildren = [
  {
    path: "/home/free_templates",
    name: "FreeTemplates",
    element: lazy(() => import("../page/Home/FreeTemplates")),
    children: routesList
  },
  {
    path: "/home/open_membership",
    name: "OpenMembership",
    element: lazy(() => import("../page/Home/OpenMembership")),
  },
=======
export const FreeTemplatesRouterChilren = [
  {
    path: "/home/free_templates/featcured_picks",
    name: "FeatcuredPicks",
    element: lazy(() => import("../page/Home/FreeTemplates/FeaturedPicks")),
  },
];

export const HomeRouterChildren = [
  {
    path: "/home/free_templates",
    name: "免费模板",
    element: lazy(() => import("../page/Home/FreeTemplates")),
    children: FreeTemplatesRouterChilren,
  },
  {
    path: "/home/open_membership",
    name: "开通会员",
    element: lazy(() => import("../page/Home/OpenMembership")),
  },
  {
    path: "/home/products_services",
    name: "产品服务",
    element: lazy(() => import("../page/Home/ProductsServices")),
  },
  {
    path: "/home/solution",
    name: "解决方案",
    element: lazy(() => import("../page/Home/Solution")),
  },
  {
    path: "/home/free_templates/work_bench",
    name: "工作台",
    element: lazy(() => import("../page/Home/FreeTemplates/WorkBench")),
  },
>>>>>>> 040b22f (改版)
];

const routerList = [
  {
    path: "/",
<<<<<<< HEAD
    to: "/home",
=======
    to: "/home/free_templates/featcured_picks",
>>>>>>> 040b22f (改版)
  },
  {
    path: "/home",
    name: "Home",
    element: lazy(() => import("../page/Home")),
    children: HomeRouterChildren,
  },
  {
<<<<<<< HEAD
    path: "/login",
    name: "Login",
    element: lazy(() => import("../page/Login")),
=======
    path: "/createtemplate",
    name: "createtemplate",
    element: lazy(() => import("../page/CreateTemplate")),
>>>>>>> 040b22f (改版)
  },
];

export default routerList;
